<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    System.out.println("path=" + path + ",basePath=" + basePath);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>供货商信息管理系统</title>
    <style type="text/css" media="screen">
        .center {
            margin: 8%;
            text-align: center;
        }

        .button-container {
            text-align: center;
        }

        .button-container input[type="button"] {
            display: block;
            width: 200px;
            height: 35px;
            font-size: 21px;
            margin: 20px auto;
        }
    </style>
    <SCRIPT language="javascript" type="text/javascript" src="/manager/js/main.js"></SCRIPT>
    <script language="javascript">
        function custom_close() {
            if (confirm("您确定要关闭本页吗？")) {
                if (window.opener != null) {
                    window.opener = null;
                    window.open('', '_self');
                    window.close();
                } else {
                    alert("浏览器阻止自动关闭窗口，请手动关闭该页面。");
                }
            }
        }
    </script>
</head>

<body onload="load()" style="background-color: #D9ECF6;">
<div class="center">
    <img src="/manager/img/logo.jpg" style="position: absolute; top: 0; left: 0; width: 231px; height: 231px;">
    <form name="form1" id="form1" action="" method="post">
        <table border="0" style="MARGIN-RIGHT: auto; MARGIN-LEFT: auto; width: 450px; font-size: 24px;">
            <tr align="center">
                <td colspan=2>
                    <h1>供货商信息管理系统</h1>
                </td>
            </tr>
        </table>
        <div class="button-container">
            <input type="button" id="querrybyall" value="显示所有供货商" onclick="is_submit(1)"/>
            <input type="button" id="querrybyid" value="ID查询" onclick="is_submit(2);"/>
            <input type="button" id="querrybyname" value="名称查询" onclick="is_submit(3);"/>
            <input type="button" id="AddSupplier" value="增加供应商" onclick="is_submit(4);"/>
            <input type="button" name="close" value="退出" onclick="custom_close()"/>
        </div>
    </form>
</div>
<img src="/manager/img/bottom.png" alt="Bottom Image"
     style="width: 100%; height: 510px; display: block; margin-top: 1px;">
</body>
</html>